<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>个人信息页</title>
<link rel="stylesheet" type="text/css" href="page/css/bootstrap.min.css">
<script type="text/javascript" src="page/js/jquery.min.js"></script>
<script type="text/javascript" src="page/js/bootstrap.min.js"></script>
<style type="text/css">
	span.value{color: blue;}
	table tr td:nth-child(odd){font-weight: bold;}
	th strong,td strong{font-size: 22px;color: rgb(59,152,200);}
</style>
</head>

<body>
<%
String user=(String) session.getAttribute("user");

if(user!=null){

	%>
	<div class="container">
	<div class="row clearfix">
		<div class="col-md-12 column">
			<ul class="breadcrumb">
				<li><a href="#">系统 <span></span></a></li>
				<li class="active">关于系统</li>
			</ul>
			<table class="table table-hover table-condensed table-bordered">
				<thead>
					<tr class="success"><th colspan="4"><strong>服务器信息</strong></th></tr>
				</thead>
				<tbody>
					<tr>
						<td>服务器名称</td><td>${serverName }</td><td>服务器端口</td><td>${serverPort }</td>
					</tr>
					<tr>
						<td>服务器路径</td><td>${servletPath }</td><td></td><td></td>
					</tr>
				</tbody>
			</table>	
							
			<table class="table table-hover table-condensed table-bordered">
				<thead>		
					<tr class="success"><th colspan="4"><strong>客户端信息</strong></th></tr>
				</thead>
				<tbody>
					<tr>
						<td>客户端地址</td><td>${remoteAddr }</td><td>客户端主机</td><td>${remoteost }</td>
					</tr>
					<tr>
						<td>客户端端口</td><td>${remotePort }</td><td>用户</td><td>${remteUser }</td>
					</tr>
				</tbody>
			</table>	
					
			<table class="table table-hover table-condensed table-bordered">
				<thead>		
					<tr class="success"><th colspan="4"><strong>协议</strong></th></tr>
				</thead>
				<tbody>
					<tr><td>使用的协议</td><td>${protocal }</td></tr>
				</tbody>
			</table>
			
			<table class="table table-hover table-condensed table-bordered">
				<thead>	
					<tr class="success"><td colspan="4"><strong>数据库信息</strong></td></tr>
				</thead>
				<tbody>
					<tr>
						<td>数据库名</td><td>${dbConf.getDatabaseProductName() }</td><td>数据库版本号</td><td>${dbConf.getDatabaseProductVersion() }</td>
					</tr>
					<tr>
						<td>数据驱动名</td><td>${dbConf.getDriverName() }</td><td>数据库驱动版本号</td><td>${dbConf.getDriverVersion() }</td>
					</tr>
					<tr>
						<td>数据库Url</td><td>${dbConf.getUrl() }</td><td>连接的登录名</td><td>${dbConf.getUserName() }</td>
					</tr>
					
				</tbody>
			</table>
		</div>
	</div>
</div>

	<%
	}else{
		response.sendRedirect("error/needLogin.html");
	}
%>


</body>
</html>